<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta content="yes" name="apple-mobile-web-app-capable">
          <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, target-densityDpi=device-dpi" />
          <!-- 微软的老式浏览器 -->
          <meta name="MobileOptimized" content="320">
          <!-- 启用360浏览器的极速模式(webkit) – -->
          <meta name="renderer" content="webkit">
          <!-- 避免IE使用兼容模式 -->
          <meta http-equiv="X-UA-Compatible" content="IE=edge">
          <!-- 针对手持设备优化，主要是针对一些老的不识别viewport的浏览器，比如黑莓 -->
          <meta name="HandheldFriendly" content="true">
          <!-- uc强制竖屏 -->
          <meta name="screen-orientation" content="portrait">
          <!-- QQ强制竖屏 -->
          <meta name="x5-orientation" content="portrait">
          <!-- UC强制全屏 -->
          <meta name="full-screen" content="yes">
          <!-- QQ强制全屏 -->
          <meta name="x5-fullscreen" content="true">
          <!-- UC应用模式 若开启长按无法复制链接-->
          <!--meta name="browsermode" content="application"-->
          <!-- QQ应用模式 -->
          <meta name="x5-page-mode" content="app">
          <!--网站开启对web app程序的支持-->
          <meta name="apple-touch-fullscreen" content="yes">
          <!--在web app应用下状态条（屏幕顶部条）的颜色-->
          <meta name="apple-mobile-web-app-status-bar-style" content="black">
          <!-- windows phone 点击无高光 -->
          <meta name="msapplication-tap-highlight" content="no">
          <!--移动web页面是否自动探测电话号码-->
          <!--<meta http-equiv="x-rim-auto-match" content="none">-->
          <!--手机号码显示为拨号链接-->
          <meta name="format-detection" content="telephone=no">
          <meta http-equiv="Cache-Control" content="max-age=300" />
          <meta http-equiv="Expires" content="300" />
          <title>编辑资料</title>
          <link rel="stylesheet" href="../css/reset.css">
          <link rel="stylesheet" href="../css/matial.css">
          <link rel="stylesheet" href="../assets/layer_mobile/need/layer.css">
          <script src="../assets/layer_mobile/layer.js"></script>
          <script src="../js/jquery.min.js"></script>
          <script src="../js/common.js"></script>
    </head>
    <body>
    <div class="container">
      <div class="matial">
        <div class="matial-title">
          <h4>请选择您要创建的门派派系</h4>
        </div>
        <div class="matial-con">
          <ul>
            <li class="clearfix">
              <div class="item-tip">
                <p>撸毛派</p>
              </div>
              <div class="item-con">
                <p>熟知网贷返利规则，第一时间告知您如何投资实现收益最大化。</p>
              </div>
              <div class="item-check" check="0">
              </div>
            </li>
             <li class="clearfix">
              <div class="item-tip item-two">
                <p>稳健派</p>
              </div>
              <div class="item-con">
                <p>稳健投资为主，不以高返为目标，坚持稳健投资。</p>
              </div>
              <div class="item-check" check="0">
              </div>
            </li>
             <li class="clearfix">
              <div class="item-tip item-three">
                <p>高利派</p>
              </div>
              <div class="item-con">
                <p>高收益，让您用同样的投资金额获取更高的投资收益。</p>
              </div>
              <div class="item-check" check="0">
              </div>
            </li>
             <li class="clearfix">
              <div class="item-tip item-four">
                <p>短期派</p>
              </div>
              <div class="item-con">
                <p>已短期投资为主，不断复投，适合资金流动性较强的朋友。</p>
              </div>
              <div class="item-check" check="0">
              </div>
            </li>
            <li class="clearfix">
              <div class="item-tip item-five">
                <p>长期派</p>
              </div>
              <div class="item-con">
                <p>长期投资为主，懒人操作，适合业务繁忙，无时间打理投资的土豪们。</p>
              </div>
              <div class="item-check" check="0">
              </div>
            </li>
          </ul>
        </div>
      </div>
      <div class="matial">
        <div class="matial-title">
          <h4>请选择两个师门技能</h4>
        </div>
        <div class="matial-con">
          <ul>
            <li class="clearfix">
              <div class="skill-item item-tip item-two">
                <p>避雷神针</p>
              </div>
              <div class="item-con">
                <p>熟知网贷返利规则，第一时间告知您如何投资实现收益最大化。</p>
              </div>
              <div class="item-scheck" sCheck="0">
              </div>
            </li>
             <li class="clearfix">
              <div class="skill-item  item-tip item-three">
                <p>活动高手</p>
              </div>
              <div class="item-con">
                <p>稳健投资为主，不以高返为目标，坚持稳健投资。</p>
              </div>
              <div class="item-scheck" sCheck="0">
              </div>
            </li>
             <li class="clearfix">
              <div class="skill-item item-tip">
                <p>平台监控</p>
              </div>
              <div class="item-con">
                <p>高收益，让您用同样的投资金额获取更高的投资收益。</p>
              </div>
              <div class="item-scheck" sCheck="0">
              </div>
            </li>
             <li class="clearfix">
              <div class="skill-item item-tip item-five">
                <p>资产配置</p>
              </div>
              <div class="item-con">
                <p>已短期投资为主，不断复投，适合资金流动性较强的朋友。</p>
              </div>
              <div class="item-scheck" sCheck="0">
              </div>
            </li>
            <li class="clearfix">
              <div class="skill-item item-tip item-four">
                <p>野鸡杀手</p>
              </div>
              <div class="item-con">
                <p>长期投资为主，懒人操作，适合业务繁忙，无时间打理投资的土豪们。</p>
              </div>
              <div class="item-scheck" sCheck="0">
              </div>
            </li>
          </ul>
        </div>
      </div>
      <div class="btn">
          <p>提交申请</p>
        </div>
    </div>
    <script type="text/javascript">

    
    $('.item-check').click(function(){
      var is_check=$(this).attr('check')
      var j;
      $('.item-checked').each(function(i,v){
         j = i
      })
      //console.log(j)
      if(j<=0 && is_check==0){
           layer.open({
              content: '只能选择一个门派派系！'
              ,skin: 'msg'
              ,time: 2 //2秒后自动关闭
            });
      }else{
        
        if(is_check==1){
          $(this).attr('check','0');
          $(this).removeClass('item-checked');
          $(this).parent('li').removeClass('item-active');
          $(this).addClass('item-check');
        }else{
           $(this).attr('check','1');
           $(this).removeClass('item-check');
          $(this).addClass('item-checked');
          $(this).parent('li').addClass('item-active');
        }
      }
    });

    $('.item-scheck').click(function(){
      var is_check=$(this).attr('scheck')
      var j = 0;
      $('.item-schecked').each(function(i,v){
         j = i
      })
      console.log(j)
      if(j>=1 && is_check==0){
           layer.open({
              content: '只能选择两个师门技能！'
              ,skin: 'msg'
              ,time: 2 //2秒后自动关闭
            });
      }else{
        
        if(is_check==1){
          $(this).attr('scheck','0');
          $(this).removeClass('item-schecked');
          $(this).parent('li').removeClass('item-active');
          $(this).addClass('item-scheck');
        }else{
           $(this).attr('scheck','1');
           $(this).removeClass('item-scheck');
           $(this).parent('li').addClass('item-active');
          $(this).addClass('item-schecked');
        }
      }
     
    });
    $('.btn').click(function(){
      console.log($('.item-checked').length);
      console.log($('.item-schecked').length);
      if(!$('.item-checked').length){
        layer.open({
              content: '请选择一个门派派系！'
              ,skin: 'msg'
              ,time: 2 //2秒后自动关闭
            });
      }else if(!$('.item-schecked').length){
          layer.open({
              content: '请选择师门技能！'
              ,skin: 'msg'
              ,time: 2 //2秒后自动关闭
            });
      }
      if($('.item-checked').length&&$('.item-schecked').length){
        layer.open({
              content: '提交成功'
              ,skin: 'msg'
              ,time: 2 //2秒后自动关闭
            });
      }
    })
    </script>
    </body>
</html>